{extend name="base" /}

{block name="title"}权限管理列表{/block}

{block name="main"}
	<div class="content-wrapper">
		<section class="content-header">
			<h1>权限管理列表 <small>英雄联盟</small></h1>
			<ol class="breadcrumb">
				<li><a href="/shuashuale"><i class="fa fa-home"></i> 首页</a></li>
				<li><a href="/shuashuale/authorization"> 权限管理管理</a></li>
				<li class="active">权限管理列表</li>
			</ol>
		</section>

		<section class="content container-fluid">
			<div class="box">
				<div class="box-header with-border">
					<h3 class="box-title">权限管理列表</h3>
					<a class="btn btn-success btn-xs btn-flat" href="/shuashuale/authorization/create">添加</a>
				</div>

				<div class="box-body table-responsive no-padding">
					<table class="table table-bordered">
						<tr>
							<th>编号</th>
							<th>名称</th>
							<th>描述</th>
							<th>操作</th>
						</tr>
						{volist name='adminRoles' id='adminRole'}
						<tr>
							<td>{$adminRole.role_id}</td>
							<td>{$adminRole.role_name}</td>
							<td>{$adminRole.description}</td>
							<td>
								<a class="btn btn-primary btn-xs btn-flat" href="/shuashuale/authorization/update?role_id={$adminRole.role_id}">修改</a>
								<a class="btn btn-danger btn-xs btn-flat" href="/shuashuale/authorization/delete?role_id={$adminRole.role_id}"  onClick="return confirm('确认删除？删除后该权限内的管理员会自动修改为其他权限！')">删除</a>
							</td>
						</tr>
						{/volist}
					</table>
				</div>

				<div class="box-footer clearfix">
					{$adminRoles->render()}
				</div>
			</div>
		</section>
	</div>
{/block}